refactor create and delete application modules according to the client refactor