adding site and fixing ajax calls