fixed button submit behaviour