refactor
add tryCode for try catches
rename indexes to views
refactor index to view
rename index to view