Removed the mainview code which was used by the old sidebar