added window title functionality