Improvements in base_url and action management on form submission