implemented code button