enhance logic of story and pic upload