add remove, select, move and update functionality for square