Fixed missing div tags, added error popup dialog.
Setup input prompts.