add empty view, fix cursor not close bug.