changed the Back btn code