Dismiss keyboard when the menu is shown
Improved remote notifications registration