updated imports and added user constraints to views