improvements to stat save
abstracted the package search
work on view package page