improve sidebar toggling