Add ajax workaround for mobile. Add logout button.