add method and action attribute