Rewrite render method