added new script for frontend