main ui working