remodeled onclick controller