Added hideOnRouteChange support

If you use routes this will come in handy to hide the field if you press
device back button.