trying to understand my gui
adding javadocs