indentation; add request method to the not found function exception.
set view before pre dispatch.