modified templates to reflect user's permissions