ajax for planned hours and better use of planned hours model