function to get name of active container