finally (it seems) fixed UI update
added common library
moved some resources into the library