layout code improvement, add transaction buttons