Use the correct template event for the stylesheets.