added controller methods for views