Added has_many and belongs_to association and updated layout with bootstrap styling