added class to main-frame