adds title to window, fixes corner mechanics