main frame finished