minimize the use of divs in templates

Signed-off-by: Alexander Skjolden <alex@plastboks.net>