make #mod and #selected separate components