Changed JRequest to $input. Added edit to front end.