Add mode switching UI implementation for tab handling
Show confirmation dialog when leaving editing mode if question tabs are
opened
Fix syntax and coding style compliance