Move code for multimessage button to function and add uninstall listener