Added functions to order view