reformatted views and controller
fixed redirects