add before_filter and modified html