Simulation study of a space based detector for UHECR observation