Added sidebar items for different templates and changed code to not ask for the directory