Moved route callbacks to separate file