added error handling to a case where trying to add a non-existent tag.
fixed modal to be displayed correctly even when scrolling to the bottom.