Resolved height issues and positioning of close element