module: hook into click event for deactivation

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>