fix service bug and basic web controller