Fixes alignment between ui and content