fixed redirect loop in assembler when using non default device group
added template for touch devices