try catch in controller and added date message