make activeLayout an IO action