revised submit_button method