Re-factors Modal; Makes delete work;

Signed-off-by: ashwinh <ashwinh@cybage.com>