improved resource generator
layout css bug in firefox