Fixed wrong behavior on app start //Alarm was set every time it was retrieved from preference
Unified handling for application preference