added timeout to ajax request