Back button directive implemented