More work on frontend implementing ajax calls