added functionality when table is empty