added functionality for left button