Added ActiveRecord and improved styling hooks