Code changes in applyleave and cancelleave screens