Custom log and ui-router fixes