implemented logout button
windows compatibiliy