add attributes to scope and display