added additional input fields, fixed ui for backpanel
transfered functions to approrpiate files