Added Method to model to check for user
fixed views to show appropriate actions for particular users