template and css adjustment