minor modifications for view