repaced toast with log, for better debugging and replaced  boolean postDelayed  with post