added front end for refresh. now automatically refershes