Solved some problems with sizing and css templates