Adding function upon search, 3 column style turns to 1 column