Added display of views as well as ajax call