refactored form action