Keep isSearchBarShown state in app.js to keep it between views transition. Removed unnecessary code.