removing unwanted widgets and cleaning up main file