fixed delete button activation when new post is created;