Added terminate button