Add display function for two layers