better handling the restart input view event: now will not switch the layout if not needed. Was painful in webviews