added labels and transitions for editpage and homepage