Implemented route handle
simplified the example using route handle