refactored home page to use rails instead of being static