Errors fixed for Leaves controller. Have changed excel template