enhancing billing app and backend logic