add logic for ask leave