added patch to views php