Add support for empty view

Maybe not the best way, but it works well.