move status display stuff to separate module