tried to use AJAX, but it screwed up everything…