implement manual layout rather than constraints-based layout for a better UX