work on ajax calls and views mainly