Add template persistence and element resizability