added click function to barrel