Implemented close tablet with modal window