added front&back functionality for search past orders, unpolished and using hardcoded querys though