reorganize api source files
display detail when login