added navigateHome directive to fix post add behavior