Fixed close and minimze on chat