Add static files and func to method and action in the form