n+1 query fix for projects modal window