added titles; fix closing behaviour