added code to differ different object related views