added clickable function and table to mainView
merged