migrated greyscale theme code into angular controller