trying to implement ajax on period fields