How to add, move and remove elements