refined template and css styles