Using submit instead of onClick