Fix design bugs, added AJAX