Remove redundant codes, and revise service layer to increase the usability between desktop and mobile platform