fix up formatting
added logging
remove usage of raw div tags