ajax calls for main page- views