Split logic into separate frames and compose them in AppFrame
Added BorrowMasterFrame