finished b2ghaystack modal functionality