removing test code from mainview