added gui code for attention