implemented element rendering