mvp working with ajax