Added a parameter to allow custom prompt view