add animation and modify network functions