Added date display to onClick. Everything is defined in onClick and works well so far