adds structure to java module and adds coniditional to toast notification