delete showsidebar function and delete unused interfaces