add main activity ui logic