made lots of small fixes, split up html files to function properly with the app