I prefer this inline onclick instead of crafting whole new view class.