ensure edit button doesnt show for view only