gui : now gui interacting properly with java