add beforeView and afterView in module