2D template stabilises Perovkite for solar cells