Handling rendering order