Some changes and flash notice with js