added log out button and fixed application files