better addalarm
refactor background + fix alarm system