fix text alignment and positioning issues