Defects in Prefix master Screen UI.

1) On new Add screen allows to breach max length.
2) Referred record should not be deleted.
3) Hide inactive checkbox in edit mode.
4) Synchronize calendar use in add and edit screen.  