status bar logic updated in leave approval and leave request form