Adjusted passcode view so it's completely visible

When editing the passcode, the top views were cut off by the navigation
bar.
Resolved deprecated dismissModalViewControllerAnimated warnings