working

got app working need to do significant refactoring work