added feature to start and stop service
added code to start and stop service