implemented clear history button, improved ui