Added searchAction function - called on search

Added searchAction function that is called on search or topic change in
any way