Removed use of scope and used state pattern to identify the category list.