add codes to blockmgr page