improvements to hoursplan controller and view but still there are errors