added front end stuff, work in progress