Added option to show/hide the stop button