Ajax action to allow user to retain view setting

Resolves #347