Colorbox improvements
Added global variables in template files