added log out function/java page