title: How can I create a dual function button?
body: <p>I have a application which has a start button(with a play image). once the start button is clicked the next click it should act like a pause button (also a change in button image). How can we implement both this function with image changing one for play and another for pause with the same button?</p>