change hook to post method
remove unused imports