finished main portion of app