edited settings and added action listeners