isset check submit type in action.php