prompt works, though still disappears at refresh