Added character displacement and close behavior