refactored contcontroller, jquery effects to form