implementing the user interface for entities using ajax