adding enter submit function