added clicking and next panel