add view/JSON switch
add ajax call