fixed fragment transactions

adapted layouts and sprite name logic
fixed tests