add messages controller
save before refactoring