Fixed the problem with delayed AJAX replies and a wrong view-status of the buttons