Added buttons pressed listeners. Not tested yet