Fixed bugs in view when sending information to controller.