Refactored moving and deleting page components