added add/remove table functionality