Extract UI creation into simpler methods