added terminate btn