add question functionality