changed button to a jquery ajax call