User interface and main function update