Add "after" callback function to plugin

Added an after callback function to the plugin, an if check was added to the context click so that it doesn't fire everytime.