Add button toggle and stop to gui