Add a form action handling method