implemented display function for styled node