Some progress in main page and ajax requests