Little rewrite submit function to remove unnecessary return