fixed bug on leave balances for direct reports page in manager view.
added handling for managing new or editing leave requests