Added functionality of the Back button + animations