Added datepicker for whole application. Fixed the error on leaves/index page for leaveDetails