add inverse relationships in User model and main view