Switch Page working updated code linked switchPage to button