fix bug in display tablet and mobile