Added custom dialog for confirmation

Javascript's native dialog was ugly and caused double events when
called from side panel