Function to load css styles improved.