hr leave approval selected index path logic updated