Widget item's click events separeted for settings button and modes
buttons. Fixed and improved update\restore logic.