added label displaying function