Delete and View functionality working