Altered the theme ready for active record implementation