cot: implement functions for restore menu