added some more utility code and css