added outline of program, OnClick function is to be changed