adding hooks to frontend