Document beforeHide mobile view event