Starting out with Mendix I was looking for the same: click a button, show the data on the same page. Mendix is just not built that way. They expect you to click a button and show the data on a new page.
Probably that works for you, but if you do have more time and business case for it have a look at this question of a couple of weeks ago: https://forum.mendix.com/link/questions/96064