adding stockDetails and implementing router-logic in pageController