added header file and changed the templates along with adding media folder