added forms and auto refresh