added conditionals and some styling for alert flashes
added destroy node method