#121; improve event handling in center plugin
minor cleanup