Changed stylesheet logic