Form:event function and add a button