Make the plugin work after reload by listening to navigation event