fixed the UI elements and positions