adding three global variables. Allows to use correct alignment without html_tag function