added device algorithm and load-btn