finalise main ui