DRY views by using layout