fixed count rate function
made count rate a toggle button
gauss fit, count rate and removeorders buttons all toggle and there for dont make errors when switching between funtions