added proper way of handling the destroy() and manialink actions