styling and attribute functionality