less unnecessary reloading
use events instead of hardcoded keypress
prevent permenent message from reappearing after message