Added UI for peak detection