Added a proper submit onclick