Implemented back and forward selection in Sidebar