rewrite frontend from orginal client
added front end