splitted create frmo createedit

splitted create method (opend the page or create if not exists and
createedit (open in edit mode if exists)