Added clear button and fixed autolayout issues.