renamed pages directory to views to make more sense with rails structure