Change the button type to checkbox, when a panel is registered

This patch makes the button behave like the download panel button when a panel is attached. I further updated one line for the module to work with the SDK 1.13
(sorry for the first pullrequest - I really messed that up!)