Changed styles of the elements accordingly