used javascript instead of navigate for reload app