Update logout function
Update url for app