Changed the AJAX ERB templates so that only the contents are going to be rerendered.