Adds listener for p and o to change icon