3rd edit with proper ui and alarm