Another way to incapsulate modal, moving to panels