Working dynamic links and destroy
added if/then to not display empty rows