added pundit, updated layout, fixed turbolinks javascript bug