fixed open and close routes