add the function of goBack