getting container name before drawing screen