Fixed behaviour on clicking outside button border
Fixed behaviour on clicking outside button border

Due to incorrect button creation and event listener
registration, saving/removing of profiles was happening
even when user clicked outside the button. This is
especially a problem when user could mistakenly deletes
profile.

Also fixed toggle behaviour when 'Select All' options
were chosen.

sg1993/Save-The-Session,sg1993/Save-The-Session