modernize text alignments and modal window callbacks