Refactoring message input notfication type