Detach events before calendar content table is removed