update the show activity to make the code cleaner