Added reminder code for view and alarm