cleans up hiding and showing code
arrrrrggghhh