implementing leave now feature