PHP error fix + more

Fixed PHP undefined variable error. Enhancements: if screen is not
specified, pointer is displayed in all screens. If no id is specified,
a unique id is generated.