auto focus sidebar with show sidebar, when close sidebar, auto focus old view