Why is the title of my window not changed to title of form?