finished main part of app