Moving register location listener to onresume