implemented the onclick of stats button, also fixed the layout