cleanup messages controller