Removing console logs and close fa modal directive