code initial project gui enccountered exception