Compare button submits form