code trimmed more; color changing corrected; screenshot functionality added and working properly