I have refactored the code again and there are some bugs related to fetching and all so need to make changes