bug fix..command button ws not working in template