refactored hide/show functions & removing prev li items