Moved handler registration to code behind