Prepare UI part.