table function implemented to empty view