added return to navigate for browser that do not support push so that code does not fall through