calling render from the add method n canvas