added the clear button implementation. and nasty minion style control