Refactored code according to 'rails_best_practices' gem
Fixed silly front end bug on the homepage