Made the page update after ajax call