Remove admin/action.php and move some function to the model