Fixed reload-bug. Switched to sync-AJAX calls