Porting CategorySelect hooks to MW hook handler