added loe handling in views