refactor transactions view