added GUI panels and functionality for function 1-4