changed view to rails convention