some code cleanups, add clearAll button and SLOT