first attempt at ajax inside the view