removed scope stuff for onClick