Finally fixed layered panes

Cards will be drawn soon