fixed title on popup visibility change