work on views and ajax