Changed from widget pattern to normal plugin (way less code).