Prep AJAX controller for display control

Towards #347