Fix the issues with AJAX editing

 - Verify edit choice
 - Add AJAX support to server side scripts
 - Add AJAX calls to clientside scripts
 - Fix various layout issues that occurred