Changed context and added deselection callbacks