fixed time frame view to return to previous view instead of always history view
re-added reference to cordova