added action sheet functionality to detail view