improved and fixed issues sidebar show/hide