added ability to change text alignment