completed basic ui, added part of the logic