Moved 'home' logic to index