Updated edit profile and entity.js