added preview screenshot and made alarm work again