fixed hiding/showing messages