Fix view for Ajax to work