moved ui rendering into fragment