added clear button and fix dynamic text