Move to front and back functionality done