Added Common back and navigate button logic.