added replacement methods for first and second view controllers
fixed replacement methods