Fix frame levels, make sure UI_PARENT is hidden, implement template main UI background.