stuff with notifications: fixed last notification error and deleting viewed notifications