Move div and clean up code