Added bug fixes for determining the current controller and view.
Added the redirectToAction function.