preparing ui table