add mobile check and hide the sidebar menu if true