added missing callback in View.render which might cause memory leaks and added error handling (log) into callback func