Updated to use search in angular to change the page without reloading