added messagebox auto submit upon enter

need to test it