Simplified code. Removed custom box url.