configure events delete, fix layout