changes to pinnings controller
fixes n+1 query