Fixing issue where home page is alwasys active