added display attribute functionality.