added "active" parameter attribute passing