now saves position of sidebar