changes in tablet mode (fixed modal window display bug)