made app mode togglable