hero window work

finaly got project to compile