Updated onRender to customise buttons depending from the view
Implemented filtering