Solved all problems except the ie problems (pdf and logout)