How to add different actions to submit buttons?