changed behavior of sidebar for better display on tablets