Update default template. Fix bugs with links