adds a delegate and protocol to know when next or previous button are clicked