ajax moving to appropriate place