[#56707396] clean code for tags popover printing
fix a logout bug of devise auth (caused by html form not made from rails)