controlling scope functions and display