(Bug 5234) noentries message not printed in some styles

-- refactor function in Core2
-- remove useless CSS