split purchase details to item and amount
added modals