Added conditionals to views to hide actions the user is unable to perform