added sidebar controller, removed prefsopen flag from container moved to sidebar,