reducing redundency by merging three user-patient administration page into one with the help of session[:user_type] to identify the authority