minor refactoring show style jquery, destroy ajax