Switching from form to div