Show selected transaction

* Show selected transaction
* Show selected category
* Clean up the logic