added relations between model and securing some actions