add route handler and view handler
add route and view handler