Implemented rendering to templates. Now need to finish templates