moving ui outside lib