Add more UI elements for settings panel.
Separate java scripts code for better edit.