fixing path to cache file + height getting on controller