Closing and opening tables