Function to be changed into a dinamical chained menu