Close Button Working

X button on top right now closes properly