cleans up main page