Update functions.php

edit action to submit form