add autoremove functionality for stacked.

some changes to the general function. pending sanitation of process
add remove for horizon
close button appending dynamically to title. Doesn't appear to break much, but css is hardcoded to length (for now)