fixing script and style enqueue hook