Refine Dialog and add slice click event

Dialog for choosing category;
Add slice click events
Merge pull request #6 from dan753722/Slice_Click_events

Refine Dialog and add slice click event