added fucntionality between both pages