add action and method to form