refactoring transaction model and modifying dashboard