changed template php file to make form