Added code to hide the menu links and the action buttons when a view is rendered in modal.
Removed unused state toggler in ui.js. The state will get updated automatically there is no need to toggle the class of the element on every click.
Merge branch 'master' of https://github.com/joomlaworks/k2-v3-dev-build