Messy implementation of folder view and templateview, awaiting fix..