remove global namespace and implement test btns