Navigate bet two layouts with click of a button by passing the value