1). rename template to be layout
2). fix the access of static resources