add support for empty view; solve bug when runs out of views