three ways to implement onclick