added onClick function to viewcontroller.h