Fixed closing 'X' icon to hide and show correctly