nested categorisation implemented on the front end