Refactors browse template.