Mac app buttons error due darwin string

change the os select from the app config to setting from local storage & change of the classes to call the events.