create question functionality