added last route remembering with amplify