removed navigation (unused) and moved template related function to template.php
added a checkbox template and made the sensors alias and name as const