You are right. It's a better way use Route object. I fixed it.