Implement clear button and test view buttons