finished most of the code. have to add menus