change views to props so that it can be accessed by parent rule