Move ajax request to synchrone type