reorganize HTML functions; modify CSS