updating main controller & vid directive