finished bottonClick
added endClick
improve showTable