rewrite render code to do the rest request and other time consuming tasks in parallel for controllers and the base controllers