Refactored response modal logic into frame controller