added empty view logic