add handeler and some changes in route so that we can understand how handeler works